<?php echo js( "js/kindeditor/kindeditor.js" );?>
<?php echo js( "js/kindeditor/lang/zh_CN.js" );?>
<script type="text/javascript">
        KindEditor.ready(function(K) {
                window.editor_1 = K.create('#comment');
                window.editor_2=K.create('#reply_content');
                editor_1.readonly(true);

        });
</script>
<div class="Breadcrumb">
	  <div class="Breadcrumb-i">您当前所在的位置：<span><a href="<?php echo base_url($this->_site_path.'/message');?>">用户留言表</a></span>&nbsp;>&nbsp;<span class="orange"><?php echo isset($message_data['id'])?'修改':'添加';?></span> </div>               <div class="Breadcrumb-div">
       	   <ul>
           	   <!-- <li class="Breadcrumb-tj"><a href="<?php echo base_url( $this->_site_path.'/message/add' );?>" >添加</a></li> -->
           	   <li class="Breadcrumb-lb"><a href="<?php echo base_url( $this->_site_path.'/message' );?>" >列表</a></li>
           </ul>
        </div>
</div>
<div class="box box-headtitle box-radius">
<?php get_messagebox();// 获取提示框 ?>
	<form method="post">
		
		<div class="control-group">
			<label class="control-label" for="visitor_name">游客名称</label>
			<div class="controls">
				<!-- <input type="text" name="visitor_name" id="visitor_name" placeholder="" value="<?php echo isset($message_data['visitor_name'] ) ? $message_data['visitor_name'] : ''; ?>"> -->
				<span><?php echo isset($message_data['visitor_name'] ) ? $message_data['visitor_name'] : '';?></span>
			</div>
		</div>
		
		<div class="control-group">
			<label class="control-label" for="comment">用户留言</label>
			<div class="controls">
				<!-- <input type="text" name="comment" id="comment" placeholder="" value="<?php echo isset($message_data['comment'] ) ? $message_data['comment'] : ''; ?>"> -->
				<textarea id="comment" name="comment"><?php echo isset($message_data['comment']) ? $message_data['comment'] : "";?></textarea>
			</div>
		</div>
		
	
		
		<!-- <div class="control-group">
			<label class="control-label" for="responder_id">回复者</label>
			<div class="controls">
				<input type="text" name="responder_id" id="responder_id" placeholder="" value="<?php echo isset($message_data['responder_id'] ) ? $message_data['responder_id'] : ''; ?>">
			</div>
		</div> -->
		
		<div class="control-group">
			<label class="control-label" for="reply_content">回复内容</label>
			<div class="controls">
				<!-- <input type="text" name="reply_content" id="reply_content" placeholder="" value="<?php echo isset($message_data['reply_content'] ) ? $message_data['reply_content'] : ''; ?>"> -->
				<textarea id="reply_content" name="reply_content"><?php echo isset($message_data['reply_content']) ? $message_data['reply_content'] : "";?></textarea>
			</div>
		</div>
		
	<!-- 	<div class="control-group">
			<label class="control-label" for="reply_time">回复时间</label>
			<div class="controls">
				<input type="text" name="reply_time" id="reply_time" placeholder="" value="<?php echo isset($message_data['reply_time'] ) ? $message_data['reply_time'] : ''; ?>">
			</div>
		</div> -->
		
		<div class="control-group">
			<label class="control-label" for="comment_time">留言时间</label>
			<div class="controls">
				<!-- <input type="text" name="comment_time" id="comment_time" placeholder="" value="<?php echo isset($message_data['comment_time'] ) ? init_date($message_data['comment_time'],'Y-m-d H:i:s') : ''; ?>"> -->
				<span><?php echo isset($message_data['comment_time'] ) ? init_date($message_data['comment_time'],'Y-m-d H:i:s') : ''; ?></span>
			</div>
		</div>

		<?php if(!empty($message_data['reply_content'])){?>
		<div class="control-group">
			<label class="control-label" for="reply_time">回复时间</label>
			<div class="controls">
				<!-- <input type="text" name="comment_time" id="comment_time" placeholder="" value="<?php echo isset($message_data['comment_time'] ) ? init_date($message_data['comment_time'],'Y-m-d H:i:s') : ''; ?>"> -->
				<span><?php echo isset($message_data['reply_time'] ) ? init_date($message_data['reply_time'],'Y-m-d H:i:s') : ''; ?></span>
			</div>
		</div>
		<?php }?>
		<div class="control-group control-group-submit">
			<button type="submit" class="btn  btn-blue  floa-Left"><?php echo isset($message_data['id'])?'回复':'添加';?></button>
			<a href="javascript:window.history.go(-1);" class="btn btn-blue" style="margin-left:100px;">返回</a>
		</div>
		<input type="hidden" name="is_submit" value="1">
		<!--__TOKEN__-->
	</form>
</div>
